package training.dao;

/**
 * <ol>
 * 	<li>客戶的相關資料皆須透過此data access object 取得</li>
 * 	<li>進行客戶資料的操作時，必須使用此DAO</li>
 * </ol>
 * @author fatsung
 * @version 1.0
 * @created 23-二月-2013 上午 10:54:56
 */
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.cache.ehcache.internal.util.HibernateUtil;
import org.hibernate.hql.internal.ast.tree.UpdateStatement;
import org.springframework.stereotype.Repository;
import training.vo.Customer;

@Repository("CustomerDao")
public class CustomerDao extends HibernateDao<Customer,String>{
	/**
	 * 查詢客戶基本資料
	 * @param id
	 * @return
	 */
	public Customer getById(String id){
		return findById(id);
	}
}